
<div class="topLink">
    <div class="topLinkLeft">
        <div class="nav">
            <ul>
                <li>
                    <div id="mnu_product" class="menuGroup">
                        <?php
                        if($this->bool_logined()){?>
                        <a href="<?php echo __SUBDIRECTORY__?>/new/project.php">New Project</a>
                        <span class="rowBreak"></span>
                        <?php }?>

                        <a href="<?php echo __SUBDIRECTORY__?>/projects/design.php">Design</a>
                        <a href="<?php echo __SUBDIRECTORY__?>/projects/software.php">Software</a>
                        <a href="<?php echo __SUBDIRECTORY__?>/projects/designSoftware.php">Design &amp; Software</a>
                        <a href="<?php echo __SUBDIRECTORY__?>/projects/manageConsult.php">Management &amp; Consulti</a>

                        <a href="<?php echo __SUBDIRECTORY__?>/projects/writingTranslation.php">Writing &amp; Translation</a>
                        <a href="<?php echo __SUBDIRECTORY__?>/projects/soundMultimedia.php">Sound &amp; Multiimages</a>
                        <a href="<?php echo __SUBDIRECTORY__?>/projects/accounting.php">Accounting</a>
                        <a href="<?php echo __SUBDIRECTORY__?>/projects/partnership.php">Partnership &amp; Marketing</a>

                    </div>

                </li>

                <li>
                    <span onclick="showMenu('product','0')">Projects <img id="img_product" src="<?php echo __IMAGE_ASSETS__?>/dwnArrow.jpg" alt="" /></span>
                    <span class="h5 borderLeft">&nbsp;</span>
                </li>
                <?php
                if($this->bool_logined()){?>
                <li>
                    <span>Bookmark <img id="img_bookmark" src="<?php echo __IMAGE_ASSETS__?>/dwnArrow.jpg" alt="" /></span>
                </li>
                <?php
            }
            ?>
            </ul>
        </div>
    </div>

    <div class="topLinkRight">

        <?php
        if(!$this->bool_logined())
        {
            if(strlen($this->pnl_mebubar->label_message->Text)>0)
            {
                $this->pnl_mebubar->label_message->Visible=true;
                $this->pnl_mebubar->label_message->Render();
            }
        }
        else
        {
            $this->pnl_mebubar->label_message->Visible=false;
        }
        ?>

        <?php if($this->bool_logined()){?>
        <div class="helpTxt">Logged in as <a href="/my_account.php" class="helpTxt"><?php _p($this->UserName);?></a> | <a href="#" class="help">Help</a> | <a href="<?php echo __SUBDIRECTORY__?>/logout.php">Logout</a></div>
        <?php
        }
        else
        {
            if(!$this->bool_mode_register)
            {
                $this->pnl_mebubar->textfield_register_username->Visible=false;
                $this->pnl_mebubar->textfield_register_email->Visible=false;
                $this->pnl_mebubar->button_register->Visible=false;

                $this->pnl_mebubar->textfield_login_username->Visible=true;
                $this->pnl_mebubar->textfield_login_password->Visible=true;
                $this->pnl_mebubar->button_login->Visible=true;

                _p('username:');
                $this->pnl_mebubar->textfield_login_username->Render();
                _p('password:');
                $this->pnl_mebubar->textfield_login_password->Render();
                $this->pnl_mebubar->button_login->Render();
                echo('<a href="'.$this->get_href_register().'">register?</a>');
                echo('<a href="'.$this->get_href_forgot().'">fotgot?</a>');

                //echo(QApplication::$RequestUri);
   
                //echo($this->$BAseUrl);
            }
            else
            {
                $this->pnl_mebubar->textfield_login_username->Visible=false;
                $this->pnl_mebubar->textfield_login_password->Visible=false;
                $this->pnl_mebubar->button_login->Visible=false;

                $this->pnl_mebubar->textfield_register_username->Visible=true;
                $this->pnl_mebubar->textfield_register_email->Visible=true;
                $this->pnl_mebubar->button_register->Visible=true;

                _p('username:');
                $this->pnl_mebubar->textfield_register_username->Render();
                _p('email:');
                $this->pnl_mebubar->textfield_register_email->Render();
                $this->pnl_mebubar->button_register->Render();
                //echo('<a href="index_2.php?p=0">login?</a>');
                //echo('<a href="index_2.php?p=2">fotgot?</a>');

                echo('<a href="'.$this->get_href_login().'">login?</a>');
                echo('<a href="'.$this->get_href_forgot().'">fotgot?</a>');
                
                //echo(QApplication::$RequestUri);
            }
        }
        ?>

    </div>

</div>
